cmake_minimum_required(VERSION 3.10.0)
project(test VERSION 0.1.0 LANGUAGES C CXX)

# 设置 C++17 标准（全局生效）
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)  # 必须支持 C++17，否则报错
set(CMAKE_CXX_EXTENSIONS OFF)        # 禁用编译器特有扩展

add_executable(test main.cpp)

